package com.pet.user.service;

import com.pet.api.dto.AddressDTO;
import com.pet.common.domain.Result;
import com.pet.user.domain.dto.AddressFormDTO;
import com.pet.user.domain.po.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pet.user.domain.vo.AddressVO;

import java.util.List;

/**
 * <p>
 * 用户收货地址表 服务类
 * </p>
 *
 * @author Cookies
 * @since 2024-07-03
 */
public interface IAddressService extends IService<Address> {

    List<AddressVO> getAddressesByUser();

    boolean addAddressByUser(AddressFormDTO addressFormDTO);

    boolean updateAddressByUser(AddressFormDTO addressFormDTO);

    boolean deleteAddressByUser(Integer id);

    AddressDTO queryAddressById(Integer id);

    Result getAddressById(Integer id);
}
